﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace text2.张伟鸿实验2_4
{
    public partial class _2_4 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
          
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
             HttpCookie c1 = new HttpCookie("user", TextBox1.Text);
            Response.Cookies.Add(c1);
            c1.Expires = DateTime.Now.AddMinutes(60);
            Response.Redirect("cookie.aspx");
        }
    }
}